//封装获取轮播图数据的逻辑函数
import {ref,onMounted} from 'vue'
import { homeGetCarouselData } from "@/apis/home"
export const useCarousel = ()=>{
  const carouselData = ref()
  onMounted(async ()=>{
    const res = await homeGetCarouselData({distributionSite:'2'})
    carouselData.value = res.data.result
  })
  return{carouselData}
}
